<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class article extends rows{
 	function init(){
 		$this->tableName="sn_article";
 		$this->col["artid"]   = new column("artid",dataCheck::INTEGER);
 		$this->col["arttitle"] = new column("arttitle",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["arttype"]  = new column("arttype",dataCheck::INTEGER);
 		$this->col["artcontent"]  = new column("artcontent",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["artuid"]  = new column("artuid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["artgid"]  = new column("artgid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["arttime"]  = new column("arttime",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["artsendip"]  = new column("artsendip",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["artclicks"]  = new column("artclicks",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["artstate"]  = new column("artstate",dataCheck::INTEGER|dataCheck::NOTNULL);
 	} 	 	
 }
